//
//  YHJButton.m
//  OAProject
//
//  Created by yhj on 2017/3/22.
//  Copyright © 2017年 cdnunion. All rights reserved.
//

#import "YHJButton.h"

@interface YHJButton ()

@property (nonatomic, assign)CGRect imageRect;

@property (nonatomic, assign)CGRect titleRect;

@end

@implementation YHJButton

-(void)layoutSubviews
{
    [super layoutSubviews];
    self.imageView.frame = _imageRect;
    self.titleLabel.frame = _titleRect;
}

-(void)setImage:(CGRect)imageRect title:(CGRect)titleRect;
{
    _imageRect = imageRect;
    _titleRect = titleRect;
    [self setNeedsLayout];
}

@end
